﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Mime
{
    using System;

    /// <summary>Represents an entity body (see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a> 2.4. &amp;
    /// 2.6.) with image content (see <a href="http://www.ietf.org/rfc/rfc2046.txt">RFC 2046</a> 4.2.).</summary>
    /// <threadsafety static="true" instance="false"/>
    public sealed class ImageBody : BinaryBody<ImageBody>
    {
        /// <summary>Initializes a new instance of the <see cref="ImageBody"/> class.</summary>
        /// <param name="subtype">The subtype of the image body, usually one of the <see cref="ImageSubtypeNames"/>
        /// members.</param>
        /// <exception cref="ArgumentException"><paramref name="subtype"/> is <c>null</c> or empty.</exception>
        public ImageBody(string subtype) : base(MediaTypeNames.Image, subtype)
        {
        }
    }
}
